package com.fbooks.mapper;

import com.alibaba.fastjson.JSONObject;
import com.fbooks.bean.Article;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @Auther: LuoRunFeng
 * @Email: 475403147@qq.com
 * @Time: 2020/5/23 0023 10:36
 * @Team: 蜂鸟工作室
 */
public interface ArticleMapper extends Mapper<Article> {

    //游览数+1
    void updateViewCount(String articleId);

    //SELECT article_catalog_id,GROUP_CONCAT(id) FROM article WHERE  user_id= 1 GROUP BY article_catalog_id
    List<JSONObject>  getArticleCatalog(String uid);
}
